<?php

namespace Gds\VenteBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Gds\VenteBundle\Entity\LigneDevis
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="Gds\VenteBundle\Entity\LigneDevisRepository")
 */
class LigneDevis {

       

    /**
     * @ORM\ManyToOne(targetEntity="Gds\ArticleBundle\Entity\Article", inversedBy="lignesDevis")
     * @ORM\JoinColumn(nullable=false)
     */
    private $article;

    /**
     * @ORM\ManyToOne(targetEntity="Gds\VenteBundle\Entity\Devis", inversedBy="lignesDevis", cascade={"persist"})
     
     */
    private $devis;

    /**
     * @var integer $id
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var float $quantite
     *
     * @ORM\Column(name="quantite", type="decimal", scale=3)
     */
    private $quantite;

    /**
     * @var float $prix_unitaire_ht
     *
     * @ORM\Column(name="prix_unitaire_ht", type="decimal", scale=3)
     */
    private $prix_unitaire_ht;

    /**
     * @var float $taux_remise
     *
     * @ORM\Column(name="taux_remise", type="decimal", scale=2)
     */
    private $taux_remise;

    /**
     * @var integer $taux_tva
     *
     * @ORM\Column(name="taux_tva", type="integer", scale=2)
     */
    private $taux_tva;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId() {
        return $this->id;
    }

    /**
     * Set quantite
     *
     * @param float $quantite
     * @return LigneDevis
     */
    public function setQuantite($quantite) {
        $this->quantite = $quantite;

        return $this;
    }

    /**
     * Get quantite
     *
     * @return float 
     */
    public function getQuantite() {
        return $this->quantite;
    }

    /**
     * Set prix_unitaire_ht
     *
     * @param float $prixUnitaireHt
     * @return LigneDevis
     */
    public function setPrixUnitaireHt($prixUnitaireHt) {
        $this->prix_unitaire_ht = $prixUnitaireHt;

        return $this;
    }

    /**
     * Get prix_unitaire_ht
     *
     * @return float 
     */
    public function getPrixUnitaireHt() {
        return $this->prix_unitaire_ht;
    }

    /**
     * Set taux_remise
     *
     * @param float $tauxRemise
     * @return LigneDevis
     */
    public function setTauxRemise($tauxRemise) {
        $this->taux_remise = $tauxRemise;

        return $this;
    }

    /**
     * Get taux_remise
     *
     * @return float 
     */
    public function getTauxRemise() {
        return $this->taux_remise;
    }

    /**
     * Set taux_tva
     *
     * @param integer $tauxTva
     * @return LigneDevis
     */
    public function setTauxTva($tauxTva) {
        $this->taux_tva = $tauxTva;

        return $this;
    }

    /**
     * Get taux_tva
     *
     * @return integer 
     */
    public function getTauxTva() {
        return $this->taux_tva;
    }

    /**
     * Set devis
     *
     * @param Gds\VenteBundle\Entity\Devis $devis
     * @return LigneDevis
     */
    public function setDevis(\Gds\VenteBundle\Entity\Devis $devis) {
        $this->devis = $devis;

        return $this;
    }

    /**
     * Get devis
     *
     * @return Gds\VenteBundle\Entity\Devis 
     */
    public function getDevis() {
        return $this->devis;
    }


    /**
     * Set article
     *
     * @param \Gds\ArticleBundle\Entity\Article $article
     * @return LigneDevis
     */
    public function setArticle(\Gds\ArticleBundle\Entity\Article $article)
    {
        $this->article = $article;

        return $this;
    }

    /**
     * Get article
     *
     * @return \Gds\ArticleBundle\Entity\Article 
     */
    public function getArticle()
    {
        return $this->article;
    }
}
